package xyz.lwm.lazycat.web.annocation;

import xyz.lwm.lazycat.utility.reflect.AliasTo;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 接收 http Cookie 参数
 *
 * @author lwm
 */
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)
public @interface Cookie {

  /**
   * The name of the cookie.
   */
  @AliasTo("name")
  String value() default "";

  /**
   * The name of the cookie.
   */
  @AliasTo("value")
  String name() default "";

}